package net.hanjava.roas;

import junit.framework.TestCase;

public class TextBundleModelTest extends TestCase {
	public void testTextBundleModel() {
		String basename = "yugyum";
		TextBundleModel model = new TextBundleModel(basename);
		String txtModel = model.toString();
		System.out.println("Model name : "+txtModel);
		assertTrue(txtModel.startsWith("[yugyum"));
	}

	public void testNullBasename() {
		String basename = null;
		try {
			new TextBundleModel(basename);
		} catch (IllegalArgumentException e) {
			// successful
			return;
		}
		throw new IllegalStateException("Null basename must not be passed");
	}
}